package com.huage.courseplatform.application.model.param;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huage.courseplatform.application.model.entity.Period;
import com.huage.courseplatform.framework.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="学生课时评价参数",description="学生课时评价参数")
public class PeriodStudentCommentPARAM  implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(value = "ID")
    private String id;

    @NotEmpty(message = "课时ID不能为空", groups = {Update.class,Insert.class})
    @ApiModelProperty(value = "课时ID")
    private String periodId;

    @NotEmpty(message = "学生ID不能为空",groups = {Update.class,Insert.class})
    @ApiModelProperty(value = "学生ID")
    private String studentId;

    @NotEmpty(message = "教师ID不能为空", groups = {Update.class,Insert.class})
    @ApiModelProperty(value = "教师ID")
    private String teacherId;

    @NotEmpty(message = "评价不能为空", groups = {Update.class,Insert.class})
    @ApiModelProperty(value = "评价")
    private String comment;

}
